<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
	<title></title>

	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- 引入bootstrap -->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
	<!-- 引入JQuery  bootstrap.js-->
	<script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</head>

<body>


<!-- 顶栏 -->
<jsp:include page="top.jsp"></jsp:include>
<!-- 中间主体 -->
<div class="container" id="content">
	<div class="row">
		<jsp:include page="menu.jsp"></jsp:include>
		<div class="col-md-10">
			<div class="panel panel-default">
				<div class="panel-heading">
					<div class="row">
						<h1 style="text-align: center;">教师工资</h1>
					</div>
				</div>
				<div class="panel-body">
					<form class="form-horizontal" role="form" action="${pageContext.request.contextPath}/teacher/showWages.html" id="form1" method="post">
						<div class="form-group">
							<label  class="col-sm-2 control-label">请输入月份</label>
							<div class="col-sm-10">
								<input type="hidden"  name="username" value="${teacherID}">
								<input type="month" class="form-control" name="month">
								<button class="btn btn-default" type="submit">提交</button>
							</div>
						</div>
					</form>
					<form class="form-horizontal" role="form"  id="editfrom" method="post">
						<div class="form-group">
							<label  class="col-sm-2 control-label">工号</label>
							<div class="col-sm-10">
								<input readonly="readonly" type="number" class="form-control"  name="teacherID" value="${teacherID}">
							</div>
						</div>

						<div class="form-group">
							<label  class="col-sm-2 control-label" name="leave">扣钱详情</label>
							<div class="col-sm-10">
								<table class="table table-bordered">
									<thead>
									<tr>
										<th>时间</th>
										<th>原因</th>
										<th>金额</th>
									</tr>
									</thead>
									<tbody>
									<c:forEach  items="${list}" var="item">
										<tr>
											<td>${item.time}</td>
											<td>${item.reason}</td>
											<td>${item.checkingIn}</td>
										</tr>
									</c:forEach>
									<div class="form-group">
										<label class="col-sm-2 control-label">总计金额</label>
										<div class="col-sm-10">
											<input readonly="readonly" type="number" class="form-control"name="leave" value="${Moneyleave}">
										</div>
									</div>
									</tbody>
								</table>

							</div>

							<label  class="col-sm-2 control-label" name="leave">奖励详情</label>
							<div class="col-sm-10">
								<table class="table table-bordered">
									<thead>
									<tr>
										<th>时间</th>
										<th>原因</th>
										<th>金额</th>
									</tr>
									</thead>
									<tbody>
									<c:forEach  items="${list2}" var="item">
										<tr>
											<td>${item.time}</td>
											<td>${item.reason}</td>
											<td>${item.bonus}</td>
										</tr>
									</c:forEach>
									<div class="form-group">
										<label class="col-sm-2 control-label">总计金额</label>
										<div class="col-sm-10">
											<input readonly="readonly" type="number"class="form-control"name="get" value="${Moneyget}">
										</div>
									</div>
									</tbody>
								</table>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail5" class="col-sm-2 control-label">基本工资</label>
							<div class="col-sm-10">
								<input readonly="readonly" type="number" class="form-control"  name="money" value="${Money}" >
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail5" class="col-sm-2 control-label">发放工资</label>
							<div class="col-sm-10">
								<input readonly="readonly" type="number" class="form-control" id="inputEmail5" name="salary" value="${Salary}" >
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail5" class="col-sm-2 control-label">状态</label>
							<div class="col-sm-10">
								<input readonly="readonly" type="text" class="form-control"  name="state" placeholder="未发放" value="${state}" >
							</div>
						</div>

					</form>
				</div>

			</div>

		</div>
	</div>
</div>
<div class="container" id="footer">
	<div class="row">
		<div class="col-md-12"></div>
	</div>
</div>
</body>
<script type="text/javascript">
	$("#nav li:nth-child(1)").addClass("active")
	/* 批量添加 */
	$("#addMany").click(function(){
		window.location.href="${pageContext.request.contextPath}/up.jsp";
	})
</script>
</html>
